load("@rules_cc//cc:defs.bzl", "cc_binary")
cc_binary(
    name="main",
    srcs=["main.cpp"],
    linkopts = ["-pthread"],
    deps=[
        "//src:TGLine",
        "//src:TGPoint",
        "@opencv//:opencv4",
    ],
)
cc_binary(
    name="polygon",
    srcs=["polygon.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:TGLine",
        "//src:TGPoint",
        "//src:TGPolygon",
        "@opencv//:opencv4",
    ],
)
cc_binary(
    name="convex-hull",
    srcs=["convex-hull.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:misc",
    ],
)
cc_binary(
    name="nearest-pair",
    srcs=["nearest-pair.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:misc",
    ],
)
cc_binary(
    name="mincowsky-sum",
    srcs=["mincowsky-sum.cpp"],
    linkopts=['-pthread'],
    copts=["-std=c++2a"],
    deps=[
        "//src:misc",
    ],
)
cc_binary(
    name="temp",
    srcs=["temp.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:misc",
        "@eigen//:eigen3",
    ],
)
cc_binary(
    name="point2Polyline",
    srcs=["point2Polyline.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:misc",
        "@eigen//:eigen3",
    ],
)